package com.ychen.usercenter.controllers;

import com.ychen.usercenter.api.AccountFacade;
import com.ychen.usercenter.service.AccountService;
import com.ychen.usercenter.vo.PayForOrderReq;
import com.ychen.usercenter.vo.PayForOrderResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class AccountController implements AccountFacade {

    @Autowired
    private AccountService accountService;

    @Override
    public PayForOrderResp payForOrder(PayForOrderReq req) {
        return accountService.payForOrder(req);
    }
}
